export function userIsLogin () {
    let userData = JSON.parse(window.localStorage.getItem('userData'));
    if (userData) {
        return true;
    } else {
        return false;
    }
}

export function userInfoByArguments (arg){
  let userData = JSON.parse(window.localStorage.getItem('userData'));
  const _arg = arg;
  if (userData) {
    return userData[_arg];
  } else {
    return null;
  }

}
